package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lmshe
 * @since 2017-11-22
 */
@TableName("w_occupation")
public class Occupation extends Model<Occupation> {

    private static final long serialVersionUID = 1L;

    /**
     * 职业表
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 职业
     */
	private String occupation;
    /**
     * 职业描述
     */
	private String desc;
    /**
     * 排序
     */
	private Integer sort;
    /**
     * 是否删除，0否1是，默认为0
     */
	@TableField("is_delete")
	private Integer isDelete;
	private Date createtime;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getOccupation() {
		return occupation;
	}

	public void setOccupation(String occupation) {
		this.occupation = occupation;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Occupation{" +
			"id=" + id +
			", occupation=" + occupation +
			", desc=" + desc +
			", sort=" + sort +
			", isDelete=" + isDelete +
			", createtime=" + createtime +
			"}";
	}
}
